package juc.reentrantreadwritelock;

public class Run {
    public static void main(String[] args) {
        MyService myService = new MyService();
        new Thread(()->{myService.read();}).start();
        new Thread(()->{myService.read();}).start();
        new Thread(()->{myService.read();}).start();
        new Thread(()->{myService.write();}).start();
    }
}
